<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>

<script>
	function validar1(){
		var i = document.f2.txtTipo.value;
		var y = document.f2.txtDescrip.value;
		
	if (i == "") 
	{alert("Ingrese su Codigo de Empresa...");return false;
	}
	if (y == "")
	{alert("Ingrese la Descripcion...");return false;
	}
	return true;
	} </script>

</head>
<body>
<div class="marco">
<form name="f2" action="RegistrarEmpresa" method="post" onsubmit="return validar1();">
<table class="fnd_cdr_up txt_tablas" width="100%">
<tr><td class="titulo_resaltado" colspan="4">
AGREGAR TIPO DE EMPRESA </td>  </tr>
<tr>
<td>
CODIGO
</td>
<td>
<input type="text" id="txtTipo" name="txtTipo"></input>
</td>
<td> DESCRIPCION </td>
<td>
<input type="text" id="txtDescrip" name="txtDescrip"></input>
</td> </tr>
<tr><td colspan="4" style="height: 18px;"></td></tr>
<tr><td></td>
<td></td>
<td>
<input type="submit" alt="Guardar" title="Guardar" value="Guardar" id="btnGuardar"></input>
<input type="reset" alt="Limpiar" value="Limpiar" id="btnLimpiar"/>
</td>
<td></td></tr>
</table>

</form>
</div>
</body> </html>
<%@include file="pie.jsp"%>